<h1>Add Tasks</h1>

<% form_tag(add_project_path) do %>
  <p>
    <%= label_tag(:q, @project.project_reference) %>
    <%= hidden_field_tag(:project, @project.id) %> 
  </p>
  <p>
    <%= label_tag(:t, "Tache" ) %><br />
    <select name="task">
	<% @tasks.each do |task| %>
	       <option value="<%= task.id %>">
		<%= task.name %>
	       </option>
	<% end %>
	</select>
  </p>
    <p>
    <%= submit_tag('Add') %>
  </p>
<% end %>

<%= link_to 'Back', projects_path %>